package com.smrs.goods.webapp.action;

import java.util.List;

import com.smrs.goods.model.GoodsSkuModel;




public class GoodsSkuJsonAction extends GoodsSkuAction{
	private static final long serialVersionUID = 1L;
	
	public String viewSkuByItemJson(){
		Long itemId = this.goodsSku.getItemId();
		goodsItem = this.goodsItemService.getByPK(itemId);
		supplier = supplierService.getByPK(goodsItem.getSupplierId());
		pager.setPageSize(10000l);
		pager = this.goodsSkuService.findBySku(goodsSku, pager);
		List<GoodsSkuModel> list = pager.getRecords();
		this.buildAttributeToSku(list);
		return SUCCESS;
	}
	
}
